/* 
Boolean
Number
String
Date
RegExp
Error
*/

/* 1. ECMAScript 的内置对象 */
let b: Boolean = new Boolean(1)   
let n: Number = new Number(true)
let s: String = new String('abc')
let d: Date = new Date()
let r: RegExp = /^1/
let e: Error = new Error('error message')
b = true // 基本类型值赋值给对应包装类型变量 ==> 可以

let b2: boolean = true
// b2 = new Boolean(true)  // 将包装类型对象赋值给对应基本类型变量 ==> 不可以

/* 
Window
Document
HTMLElement
DocumentFragment
Event
NodeList
*/
const div: HTMLElement = document.getElementById('test')
const divs: NodeList = document.querySelectorAll('div')

document.addEventListener('click', (event: MouseEvent) => {
  console.dir(event.target)
})
const fragment = document.createDocumentFragment()